<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>财联社电报数据展示</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
    <div class="container">
        <header>
            <h1>财联社电报数据展示</h1>
            <div class="stats">
                <span id="total-count">总电报数: --</span>
                <span id="latest-time">最新更新: --</span>
                <span id="last-refresh">最后刷新: --</span>
            </div>
        </header>
        
        <div class="controls">
            <button id="refresh-btn">立即刷新</button>
            <label>
                自动刷新:
                <select id="refresh-interval">
                    <option value="30">30秒</option>
                    <option value="60" selected>1分钟</option>
                    <option value="300">5分钟</option>
                    <option value="600">10分钟</option>
                </select>
            </label>
            <label>
                显示数量:
                <select id="display-count">
                    <option value="20">20条</option>
                    <option value="50" selected>50条</option>
                    <option value="100">100条</option>
                </select>
            </label>
        </div>
        
        <div id="telegrams-container">
            <div class="loading">正在加载数据...</div>
        </div>
    </div>
    
    <script src="{{ url_for('static', filename='script.js') }}"></script>
</body>
</html>